@import "~antd/lib/style/themes/default.less";
.header {
    padding: 0 12px 0 0;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
    position: relative;
}

:global {
    .ant-layout {
        /* overflow-x: hidden; */
        overflow: hidden;
    }
}

.logo {
    height: 64px;
    line-height: 58px;
    vertical-align: top;
    display: inline-block;
    padding: 0 0 0 24px;
    cursor: pointer;
    font-size: 20px;
    img {
        display: inline-block;
        vertical-align: middle;
    }
}

.menu {
     :global(.anticon) {
        margin-right: 8px;
    }
     :global(.ant-dropdown-menu-item) {
        width: 160px;
    }
}

i.trigger {
    font-size: 20px;
    line-height: 64px;
    cursor: pointer;
    transition: all .3s, padding 0s;
    vertical-align: middle;
    padding: 0 24px;
    &:hover {
        background: @primary-1;
    }
}

.teamregion {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    border-left: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
    padding: 0 35px 0 35px;
    .tit {
        margin-right: 10px;
        color: #929292;
    }
    .dropdown {
        cursor: pointer;
    }
}

.smShow {
    display: none;
}

@media screen and (max-width: 480px) {
    .teamregion {
        .tit {
            display: none;
        }
    }
    .smShow {
        display: inline-block;
    }
    .smHidden {
        display: none;
    }
}

.right {
    float: right;
    height: 100%;
    .action {
        cursor: pointer;
        padding: 0 12px;
        display: inline-block;
        transition: all .3s;
        height: 100%;
        >i {
            font-size: 16px;
            vertical-align: middle;
            color: rgba(0, 0, 0, 0.65)
        }
        &:hover,
        &:global(.ant-popover-open) {
            background: @primary-1;
        }
         :global {
            .ant-avatar-image {
                img {
                    display: inline-block;
                    vertical-align: middle;
                    width: auto;
                    height: auto;
                }
            }
        }
    }
    .search {
        padding: 0;
        margin: 0 12px;
        &:hover {
            background: transparent;
        }
    }
    .account {
        .avatar {
            margin: 20px 8px 20px 0;
            color: @primary-color;
            background: rgba(255, 255, 255, .85);
            vertical-align: middle;
        }
    }
}

@media only screen and (max-width: @screen-md) {
    .header {
         :global(.ant-divider-vertical) {
            vertical-align: unset;
        }
        .name {
            display: none;
        }
        i.trigger {
            padding: 0 12px;
        }
        .logo {
            padding-right: 12px;
            position: relative;
        }
        .right {
            position: absolute;
            right: 12px;
            top: 0;
            background: #fff;
            .account {
                .avatar {
                    margin-right: 0;
                }
            }
        }
    }
}